<?php use_stylesheet('humanity/jquery-ui-1.7.2.custom.css') ?>
<?php use_javascript('jquery-ui-1.7.2.custom.min.js') ?>
<script type="text/javascript">
    $(document).ready(function(){
        $(window).load(function(){
            $("#cal").accordion({active: <?php echo $active ?>});
        });
    });
</script>
<div class="boxdx round">
<div id="cal">
<?php foreach($anni as $key => $anno): ?>
    
    <h3><a href="#"><?php echo $anno ?></a></h3>
    <div>
        <div>
            <?php echo __('January') ?>
            <?php if($mesi[$key]['01'] > 0): ?>
                (<?php echo link_to($mesi[$key]['01'], '@post_filter?month=01&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('February') ?>
            <?php if($mesi[$key]['02'] > 0): ?>
                (<?php echo link_to($mesi[$key]['02'], '@post_filter?month=02&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('March') ?>
            <?php if($mesi[$key]['03'] > 0): ?>
                (<?php echo link_to($mesi[$key]['03'], '@post_filter?month=03&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('April') ?>
            <?php if($mesi[$key]['04'] > 0): ?>
                (<?php echo link_to($mesi[$key]['04'], '@post_filter?month=04&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('May') ?>
            <?php if($mesi[$key]['05'] > 0): ?>
                (<?php echo link_to($mesi[$key]['05'], '@post_filter?month=05&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('June') ?>
            <?php if($mesi[$key]['06'] > 0): ?>
                (<?php echo link_to($mesi[$key]['06'], '@post_filter?month=06&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('July') ?>
            <?php if($mesi[$key]['07'] > 0): ?>
                (<?php echo link_to($mesi[$key]['07'], '@post_filter?month=07&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('August') ?>
            <?php if($mesi[$key]['08'] > 0): ?>
                (<?php echo link_to($mesi[$key]['08'], '@post_filter?month=08&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('September') ?>
            <?php if($mesi[$key]['09'] > 0): ?>
                (<?php echo link_to($mesi[$key]['09'], '@post_filter?month=09&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('October') ?>
            <?php if($mesi[$key]['10'] > 0): ?>
                (<?php echo link_to($mesi[$key]['10'], '@post_filter?month=10&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('November') ?>
            <?php if($mesi[$key]['11'] > 0): ?>
                (<?php echo link_to($mesi[$key]['11'], '@post_filter?month=11&year='.$anno) ?>)
            <?php endif; ?>
        </div>
        <div>
            <?php echo __('Dicember') ?>
            <?php if($mesi[$key]['12'] > 0): ?>
                (<?php echo link_to($mesi[$key]['12'], '@post_filter?month=12&year='.$anno) ?>)
            <?php endif; ?>
        </div>
    </div>
    
<?php endforeach; ?>
</div>
</div>